<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script src="./js/jquery-1.12.4.min.js"></script>
    <script>
        $(function () {

            $(".form1").submit(function (event) {
                

                // event.preventDefault();//阻止默认事件
               
               return false;//阻止默认事件  阻止事件冒泡 event.stopPropagation();
            });

        });
    </script>
</head>

<body>

    <form action="" class="form1">

        <input type="password" name="psw">
        <input type="submit">

    </form>


</body>

</html>